
<html>
<head>
</head>
<body>
<button id="sub_btn" class="sub_btn_ob">submit1</button>
<p>wosh yye </p> 
</body>
<script type="text/javascript">
	var a = 5;
	var c = 8;
	//var c_sub_btn_objs = document.getElementById("sub_btn");
	//c_sub_btn_objs.onclick =function(){
	//	alert(c)
	//};
	
	var c_sub_btn_objs2 = document.getElementsByClassName("sub_btn_ob")
	c_sub_btn_objs2[0].onclick =function(){
		alert(a)
	};
</script>
</html>